package com.java.business.controller;

import com.java.business.model.Wages;
import com.java.business.service.WagesService;
import com.java.common.model.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/wages")
public class WagesController {

    @Autowired
    private WagesService wagesService;

    @PostMapping("/list")
    public Result list(@RequestBody Wages wages){
        return wagesService.list(wages);
    }

    @PostMapping("/save")
    public Result save(@RequestBody Wages wages) {
        return wagesService.save(wages);
    }

    @PostMapping("/modify")
    public Result modify(@RequestBody Wages wages) {
        return wagesService.modify(wages);
    }

    @GetMapping("/remove")
    public Result remove(int[] ids) {
        return wagesService.remove(ids);
    }
}
